package com.trg.generaltool.service.rabbitmq.conform.route;

import org.checkerframework.checker.units.qual.C;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @ClassName: providerRout
 * @Description:
 * @Author: tangrg
 * @Date: 2021/7/19 16:31
 * @Version: 1.0
 * @Return:
 **/
@Component
public class providerRout {

    @Autowired
    RabbitTemplate rabbitTemplate;

    public void sendMsg(){
        rabbitTemplate.convertAndSend("direct","waring","routing路由模型");
    }
}
